import axios from 'axios';

export const createDatabaseWithics = async (icsUrl,index_Id) => {
    try {
        const response = await axios.get('http://localhost:65520/api/ics/parseFromUrl', {
            params: { 
                icsUrl: icsUrl,
                index_Id: index_Id
             }
        });

        return response;
    } catch (error) {
        return {
            status: 1001,
            msg: '创建数据库失败'
        };
    }
}